<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<form id="myForm" class="form-horizontal" action="duzhe/chongzhi" method="post">
    <input type="hidden" id="id" name="dz_id" value="${requestScope.duixiang.dz_id}">
    <input type="hidden" id="dz_jine" name="dz_jine" value="${requestScope.duixiang.dz_jine}">
    <div class="form-group">
        <label for="dz_name" class="col-sm-2 control-label">读者姓名</label>
        <div class="col-sm-10">
            <input type="text" value="${requestScope.duixiang.dz_name}" name="dz_name" disabled="disabled" class="form-control" id="dz_name" placeholder="请输入姓名">
        </div>
    </div>
    <div class="form-group">
        <label for="dz_shengfen" class="col-sm-2 control-label">身份证号</label>
        <div class="col-sm-10">
            <input type="text" value="${requestScope.duixiang.dz_shengfen}" name="dz_shengfen" disabled="disabled" class="form-control" id="dz_shengfen" placeholder="请输入身份证号">
        </div>
    </div>
    <div class="form-group">
        <label for="dz_shouji" class="col-sm-2 control-label">联系方式</label>
        <div class="col-sm-10">
            <input type="text" name="dz_shouji"  value="${requestScope.duixiang.dz_shouji}" disabled="disabled" class="form-control" id="dz_shouji" placeholder="请输入联系方式">
        </div>
    </div>
    <div class="form-group">
    <label for="dz_dizhi" class="col-sm-2 control-label">家庭住址</label>
    <div class="col-sm-10">
        <input type="text" value="${requestScope.duixiang.dz_dizhi}" name="dz_dizhi" class="form-control" disabled="disabled" id="dz_dizhi" placeholder="请输入家庭住址">
    </div>
</div>

    <div class="form-group">
        <label for="jine" class="col-sm-2 control-label">充值金额</label>
        <div class="col-sm-10">
            <input type="text" value="0" name="jine" onchange="jine2(this)" class="form-control" id="jine" placeholder="请输入金额">
        </div>
    </div>
    <div class="form-group">
        <label for="dz_xinyu" class="col-sm-2 control-label">信誉分</label>
        <div class="col-sm-10">
            <input type="text" value="${requestScope.duixiang.dz_xinyu}" name="dz_xinyu" class="form-control" disabled="disabled" id="dz_xinyu" placeholder="请输入家庭住址">
        </div>
    </div>
    <div class="form-group">
        <label for="dz_shenFen" class="col-sm-2 control-label">读者等级</label>
        <div class="col-sm-10">
            <select name="dz_shenFen.sf_id" id="dz_shenFen"  value="${requestScope.duixiang.dz_shenFen.sf_id}" class="form-control" disabled="disabled">
                <c:forEach items="${requestScope.list}" var="a">
                    <c:choose>
                        <c:when test="${a.sf_id eq requestScope.duixiang.dz_shenFen.sf_id}">
                            <option value="${a.sf_id}" selected="selected">${a.sf_name}</option>
                        </c:when>
                        <c:when test="${ not (a.sf_id eq requestScope.duixiang.dz_shenFen.sf_id)}">
                            <option value="${a.sf_id}">${a.sf_name}</option>
                        </c:when>
                    </c:choose>
                </c:forEach>
            </select>
        </div>
    </div>

</form>
